/* CSS Modules - 样式模块化 */
.ganttContainer {
  background-color: #f5f5f5;
  width: 100vw;
  height: 100vh;
  padding: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.ganttHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.ganttTitle {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newOrderBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.newOrderBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.newOrderBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.plusIcon {
  font-size: 16px;
  font-weight: bold;
}

.userAvatar {
  display: flex;
  align-items: center;
}

.avatarCircle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Canvas 容器样式 */
.canvasContainer {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  overflow: auto;
  outline: none;
  flex: 1;
  min-height: 0;
}

.ganttCanvas {
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.ganttCanvas:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.canvasContainer {
  animation: fadeIn 0.5s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ganttContainer {
    padding: 16px;
  }
  
  .ganttHeader {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .ganttTitle {
    font-size: 24px;
  }
  
  .headerActions {
    width: 100%;
    justify-content: space-between;
  }
  
  .canvasContainer {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .ganttContainer {
    padding: 12px;
  }
  
  .ganttHeader {
    padding: 12px 16px;
  }
  
  .newOrderBtn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .avatarCircle {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  
  .canvasContainer {
    padding: 8px;
  }
}
